#!/bin/bash
set -eu
[[ -f /inituser/group.txt  ]] && cat /inituser/group.txt  >> /etc/group
[[ -f /inituser/passwd.txt ]] && cat /inituser/passwd.txt >> /etc/passwd
[[ -f /inituser/shadow.txt ]] && cat /inituser/shadow.txt >> /etc/shadow
echo "users/groups merged into main container."
rm -f /inituser/*.txt
